#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from operator import itemgetter

i_list = ['wangkaixuan','Chengangrong','longhao']
print(sorted(i_list))
print(sorted(i_list,key = str.lower))
print(sorted(i_list,reverse = True))

student = [('wangkaixuan',88),('Chengangrong',99),('longhao',100)]
print(sorted(student))
# print(sorted(student,key=str.upper))
print(sorted(student,key=itemgetter(0)))
print(sorted(student,key=itemgetter(1)))
